<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ReflectionGenerator 类</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="reflectionuniontype.gettypes.html">« ReflectionUnionType::getTypes</a></li>
      <li style="float: right;"><a href="reflectiongenerator.construct.html">ReflectionGenerator::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.reflection.html">反射</a></li>
    <li>ReflectionGenerator 类</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.reflectiongenerator" class="reference">

 <h1 class="title">ReflectionGenerator 类</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 7, PHP 8)</p>


  <div class="section" id="reflectiongenerator.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <span class="classname"><strong class="classname">ReflectionGenerator</strong></span> 类报告有关生成器的信息。
   </p>
  </div>


  <div class="section" id="reflectiongenerator.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">ReflectionGenerator</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><a href="class.generator.html" class="type Generator">Generator</a></span> <code class="parameter">$generator</code></span>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.getexecutingfile.html" class="methodname">getExecutingFile</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.getexecutinggenerator.html" class="methodname">getExecutingGenerator</a></span>(): <span class="type"><a href="class.generator.html" class="type Generator">Generator</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.getexecutingline.html" class="methodname">getExecutingLine</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.getfunction.html" class="methodname">getFunction</a></span>(): <span class="type"><a href="class.reflectionfunctionabstract.html" class="type ReflectionFunctionAbstract">ReflectionFunctionAbstract</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.getthis.html" class="methodname">getThis</a></span>(): <span class="type"><span class="type">?</span><span class="type">object</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.gettrace.html" class="methodname">getTrace</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = <strong><code>DEBUG_BACKTRACE_PROVIDE_OBJECT</code></strong></span></span>): <span class="type">array</span></div>

   }</div>

  </div>

  <div class="section">
   <h2 class="title">更新日志</h2>
   <p class="para">
    <table class="doctable informaltable">
     
      <thead>
       <tr>
        <th>版本</th>
        <th>说明</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>8.0.0</td>
        <td>
         类现在是 <span class="modifier">final</span>。
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div>

 </div>

 












































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="reflectiongenerator.construct.html">ReflectionGenerator::__construct</a> — Constructs a ReflectionGenerator object</li><li><a href="reflectiongenerator.getexecutingfile.html">ReflectionGenerator::getExecutingFile</a> — Gets the file name of the currently executing generator</li><li><a href="reflectiongenerator.getexecutinggenerator.html">ReflectionGenerator::getExecutingGenerator</a> — Gets the executing Generator object</li><li><a href="reflectiongenerator.getexecutingline.html">ReflectionGenerator::getExecutingLine</a> — Gets the currently executing line of the generator</li><li><a href="reflectiongenerator.getfunction.html">ReflectionGenerator::getFunction</a> — Gets the function name of the generator</li><li><a href="reflectiongenerator.getthis.html">ReflectionGenerator::getThis</a> — Gets the $this value of the generator</li><li><a href="reflectiongenerator.gettrace.html">ReflectionGenerator::getTrace</a> — Gets the trace of the executing generator</li></ul>
</div>
</div></div></body></html>